home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 223_01 / left.c < prev    next >
Text File  |  1980-01-01  |  384b  |  11 lines

  1. /*
  2. ** left -- left adjust and null terminate a string
  3. */
  4.    static char *str2;
  5.  
  6. left(str) char *str; {
  7.   str2=str;
  8.   while(*str2==' ') ++str2;
  9.   while(*str++ = *str2++);
  10.   }
  11.